de couple main container templates with headers