improved behavior of the search bar