create event model and views