init event controller