added UI class with a display method to handle messages to the user