adding search to frontend