prevent route only if route did not change and template contans ng-widget