render page before layout