Added UI for class MainWindow.