updating views for switch to ng-model