change mainCntl to mainCtrl