Added pack(); to MainWindow Class