add search functionality