add quit dialog