getPageContent function addition