Use single variable to refer to MainWindow.view
mainWindow.js: set hexpand and vexpand to true on the GTK containers