add event and publish it.