added confimation dialog upon quit if unsaved