Extend template from layout