added event controller, model and template