Implement subgroups for tree selector