History now works with up and down arrows