begin search bar functionality