added option to search history