Customizing layout with template.