added event handling for changed data