Updatped so that GridFrame, OptionsFrame, etc all take MainWindow
as a parameter.