generateController