added updateOnEvent to ClassAttributes