using ng-model instead of querySelector