added window close dot for unsaved and ask to save