finish search history