Add search functionality to the groups widget