removes rootScope out of controllers