changing templateName to layoutName