refactored to small CRUD example with ng-views