Make relations between group of checkboxes and main one