init event class