add better history lookup with arrows.