update subgenerator controller with new template