Automatically checks the parent checkbox if all child checkboxes are completed, and unchecks it otherwise.