working on making up arrow and down arrow have accesss to previous entries