change update history creation logic