add class event emitter