Added new render method to pages for building a response object
Switched pages controller to use new render method in pages