added event for change in editor