Grid-based main window instead of fixed sizes