updated AngularJS code, bindings not being updated with routes