set and checkbox methods 4 angular.js