added a form for checkboxes, figure out how to reduce and make equal to scope.input.size