minor refactoring 'user_interface.rb'
Merge pull request #2493 from laiso/missing_spec

minor refactoring 'user_interface.rb'