                     successHandler: { (name) in
                         self.customCategory.setName(name: name)
 
-                        SCStates.customCategoryWordListState = .nonEditing
-                        self.reloadView()
+                        self.changeStateTo(state: .nonEditing, reload: true)
                     }
                 )
             default:


    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
                }
