implemented scrolling on input history so it doesnt overflow