added search and display functionality