adding search history