replaced model with ng-model and added the correct references