load groups when clicking on them