add listeners to checkboxes