add scrolling with arrow keys to history page