added search functionality from navbar