added page render helper