attempt at adding search functionality