added controls for checkboxes