added return search history route and API