Added option dialog to save changed parts on quitting.