Improved the MainWindow so there are no resizing issues.

Improved the MainWindow so there are no resizing issues.