introduced defaultLayout for templates