integrated with ng-route and ng-view