update search functionality