fix ng-view and add factory for REST