impl searchbar functions.