refactored pager code into two new functions
refactored fetch_content_page
removed header definition into request_page
formatting and removed unused variable