Changes involving service and rootScope