added window close dot and ask to save