Trigger change event only when there is an actual change