fix draft undo and restore links