Changed renderPage to renderView