Simplified searchbar code.