add canRenderLayout api call
add renderPageLayoutLocal
fix renderPageLayout