Add function generate.
Changed render parameter.
Add controller class.
Add Dispacher