undoing dialog work