Added search history using c-p and c-n