Added rootScope checking on stateChangeError
state change go tab.login
upgrade modal view