implement "if checked major item then check all its minor items" func