fixed the template content to be used in the layout.js