Logic about of change events for simple editor