Add functionality to the search button.