little beauty changes to the reset and undo function, also localization