add templates and app.config
factory is added
fix update and add ng-view