checkboxes were not working because not in scope of posting function in html. it is now fixed