add history switch, and change <C-k> for back, <C-j> for forward.