add undo in output portal