converted app to use AngularJS, work in progress