Added $stateChangeSuccess listener to route checking module for compatibility with ui-router