started to add history and stuff to input