switched from $routeChangeStart to $locationChangeStart in order to cancel navigation due to authorization before it happens