adding ngModel bindings

replacing some of the jquery selectors with Angular's model binding.