$rootScope added to MainCtrl