Split up everything in proper functions within class UserInterface.