Changing the mainwindow to accomodate the grid