added search functionality