move Global service into $rootScope