add quit prompt dialog