changes to history class for mass undo