command history added with up and down arrows