updated to use templates (via ng-view)