use layout for template inheritance