make undo history persistent