moving map to rootScope