added MainWindow interface