restructuring search bar