generate events_controller