tidy up selection of checkboxes