adding search functionality