move user input and cursor to external class