     override func shouldPerformSegue(withIdentifier identifier: String, sender: Any?) -> Bool {
         guard !textView.text.isEmpty else {
             self.textView.endEditing(true)
-            emptyNoteDeterrentAlertview.showAlert(inView: self,
+            self.emptyNoteDeterrentAlertview.showAlert(inView: self,
                                                   withTitle: "Empty Note Detected",
                                                   withSubtitle: "You aren't allowed to save an empty note.",
                                                   withCustomImage: nil,

        //      print("c) I am of type: \(type(of:self.presentingViewController))")
        //    }
        
        let isPresentingFromAddButton = self.presentingViewController is UINavigationController
        if isPresentingFromAddButton {
            self.dismiss(animated: true, completion: nil)
        }
        else {
            //      print("d) I am of type: \(type(of: self.presentingViewController))")
            _ = self.navigationController?.popViewController(animated: true)
        }
    }
    

            validScrollingNavigationController.scrollingNavbarDelegate = self
            self.scrollingNavigationController = validScrollingNavigationController
        }
        
        self.doesTextViewNeedToBeSaved = false
    }
    
    override func viewWillAppear(_ animated: Bool) {
