Update mainwindow.cc for saving/loading