Add code for searchbar control