optimize the search bar