added one more check on $routeChangeStart