preserve search results when switching to compare