                 navigationController?.pushViewController(changenamecontroller, animated: true)
             }
             
-        } else if indexPath.section == 3 {
+        } else if indexPath.section == 2 {
             
             if indexPath.row == 0 {
                 do {


class SettingsController: UITableViewController {

    var headerTitles = ["Profile","Cast","About","Other"]
    var numberOfRowsInSection = [3,3,1,1]
    var settingItems = ["Change your Password","Select Different Classes", "Edit your Name",
                        "In Development", "In Development", "In Development", "Version 1.0.2", "Log out"]
    override func viewDidLoad() {
        super.viewDidLoad()
        self.navigationItem.leftBarButtonItem = UIBarButtonItem(title: "Back", style: .plain, target: self, action: #selector(handleCancel))

        } else if indexPath.section == 1 {
            cell.nameLabel.text = settingItems[indexPath.row + 3]
        } else if indexPath.section == 2 {
            cell.nameLabel.text = settingItems[indexPath.row + settingItems.count - 1]
        }
        return cell
