added delegates for search bar, which was causing the search not to be shown.