move layout to render