added search functionality and show functionality for pins