Add main element to layout template
Add header element to header template