Modified the render so that we canuse multiple layers of layout