changed the exit dialog