improve code example for nested layouts