delete MainCtrl