adding a value changed event