-added search functionality