settings func for checkboxes, select