added event model and events controller