refactoring: rename root_* to layout_* and child_* to template_*