edited out useless space and button in MainWindow