ADD the function of get history by ↑/↓