added search history for anonymous users