Open and New now work when the main windows is closed