generate events controller and routing