handling no input/invalid input + scrollbar for GUI