making the checkboxes responsible for the select options