added the run function to app so we can access the $rootScope of the application