initial undo support for hidden elements