Added first check for the file menu