add events controller. now can publish a event and view it.