Update file menu's logic