search history with arrows