     override func shouldPerformSegue(withIdentifier identifier: String, sender: Any?) -> Bool {
         guard !textView.text.isEmpty else {
             self.textView.endEditing(true)
-            
-//            let emptyNoteDeterrentAlertController = UIAlertController(title: NSLocalizedString("Write Something", comment: ""),
-//                                                                      message: NSLocalizedString("You aren't allowed to save an empty note.", comment: ""),
-//                                                                      preferredStyle: .alert)
-//            let understoodAlertAction = UIAlertAction(title: NSLocalizedString("Understood", comment: ""), style: .default, handler: { [weak self] (_) in
-//                guard let weakSelf = self else { return }
-//                weakSelf.textView.becomeFirstResponder()
-//            })
-//            emptyNoteDeterrentAlertController.addAction(understoodAlertAction)
-//            self.present(emptyNoteDeterrentAlertController, animated: true, completion: nil)
-            
+
             let emptyNoteDeterrentAlertViewController = CFAlertViewController.alertController(title: NSLocalizedString("Write Something", comment: ""),
                                                                                               message: NSLocalizedString("You aren't allowed to save an empty note.", comment: ""),
                                                                                               textAlignment: .left,

                                                        weakSelf.textView.endEditing(true)
                                                        let _ = weakSelf.shouldPerformSegue(withIdentifier: NotesViewControllerSegue.unwindToNotesTableViewControllerFromNotesViewController.rawValue, sender: weakSelf)
        }
        
        let dontSaveAlertViewAction = CFAlertAction.action(title: NSLocalizedString("DON'T SAVE", comment: ""),
                                                           style: .Destructive,
                                                           alignment: .justified,
                                                           backgroundColor: UIColor.red,
                                                           textColor: ColorThemeHelper.reederCream()) { [weak self] (_) in
                                                            guard let weakSelf = self else { return }
                                                            weakSelf.doesTextViewNeedToBeSaved = false
                                                            weakSelf.cancelButtonDidTouch(sender: weakSelf.cancelButton)
        }
        shouldSaveAlertViewController.shouldDismissOnBackgroundTap = false
        shouldSaveAlertViewController.addAction(saveAlertViewAction)
        shouldSaveAlertViewController.addAction(dontSaveAlertViewAction)
        self.present(shouldSaveAlertViewController, animated: true, completion: nil)

    }

    }
    
    fileprivate func presentShouldSaveAlertController() {
        let shouldSaveAlertViewController = CFAlertViewController.alertController(title: NSLocalizedString("There's Unsaved Change", comment: ""),
                                                                                  message: NSLocalizedString("Please choose your action carefully.", comment: ""),
                                                                                  textAlignment: .center,
                                                                                  preferredStyle: .actionSheet,
                                                                                  didDismissAlertHandler: nil)
        let dontSaveAlertViewAction = CFAlertAction.action(title: NSLocalizedString("DON'T SAVE", comment: ""),
                                                           style: .Destructive,
                                                           alignment: .justified,
                                                           backgroundColor: UIColor.red,
                                                           textColor: ColorThemeHelper.reederCream()) { [weak self] (_) in
                                                            guard let weakSelf = self else { return }
                                                            weakSelf.doesTextViewNeedToBeSaved = false
                                                            weakSelf.cancelButtonDidTouch(sender: weakSelf.cancelButton)
        }
        let saveAlertViewAction = CFAlertAction.action(title: NSLocalizedString("SAVE", comment: ""),
                                                       style: .Default,
                                                       alignment: .justified,
