navbar switch and searchbar