use template for layout definition