made it so if the sub checkboxes are all unticked on event, the parent checkbox also unticks