added search bar functionality