add totalNumMayChanged parameter for onEndSaving call back