refresh checkboxes on selection change