         case Section.settings.rawValue:
             switch indexPath.row {
             case Setting.name.rawValue:
-                SCStates.customCategoryWordListState = .editingCategoryName
-                self.reloadView()
+                self.changeStateTo(state: .editingCategoryName, reload: true)
 
                 self.presentTextFieldAlert(
                     title: SCStrings.header.categoryName.rawValue,


    fileprivate func reloadView() {
        self.tableView.reloadData()
    }

    fileprivate func dismissView() {

            case WordList.topCell.rawValue:
                switch SCStates.customCategoryWordListState {
                case .nonEditing:
                    self.changeStateTo(state: .addingNewWord, reload: true)
                default:
                    break
                }
