Refactoring user input methods