extracted rendering code into render method.
Pager to load Page object and renders the template.