switched to AngularJS and updated page