Update mainwindow file menu's logic