Fixed hideSearchBar method