add attributeChange event for detecting when attributes have changed
Fire attributeChange event after the attribute has been changed(!)