value change listener used in editor sample refactored