 }
 
 
-class MainViewController: UIViewController {
+class MainViewController: UIViewController, MainViewControllerDelegate {
 
     @IBOutlet weak var menuView: CVCalendarMenuView!
     @IBOutlet weak var calendarView: CVCalendarView!

    
    func dereferenceModeController() {
        
        pinIoViewController = nil
        uartViewController = nil
        deviceInfoViewController = nil
        controllerViewController = nil
        dfuViewController = nil
    }
    

}

        }
        
        //if status was connected, then disconnect was unexpected by the user, show alert
        if  connectionStatus == ConnectionStatus.Connected {
            
            printLog(self, funcName: "centralManager:didDisconnectPeripheral", logString: "unexpected disconnect while connected")
            
