minor refactoring 'user_interface.rb'