made changes so that when a group is checked, all it's items are checked