Change the signature of the single page rendering function