updating search functionality