optimize search button