Add search functionality to groups