make it work with searchbar