Fixed MainWindow sizing problem