Made checkboxes work