update with $rootScope