fix webhook problems
slighlty modify core event handling, add color definition to model