added search bar handler