handle checkboxes approrpiately