corrected the flow of the advanced search and the search bar