moved animation event logic to enyo