make the search button generic