fix error in filterSearch and show searchHistory