Added a listener event to the $stateChangeSuccess event