child node depends on the depth

Modify the template for child node to depends on the node's depth