working undo/redo on newent/entreplace