search function for team implemented