added search history function by use cookie