rootScope variables update on logout