         }
         
         //if status was connected, then disconnect was unexpected by the user, show alert
-        let topVC = navController.topViewController
-        if  connectionStatus == ConnectionStatus.Connected && isModuleController(topVC!) {
+        if  connectionStatus == ConnectionStatus.Connected {
             
             printLog(self, funcName: "centralManager:didDisconnectPeripheral", logString: "unexpected disconnect while connected")
             

}


class MainViewController: UIViewController {

    @IBOutlet weak var menuView: CVCalendarMenuView!
    @IBOutlet weak var calendarView: CVCalendarView!

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

}
