added search functionality for entries