add page class to get content of a page and integtrate two code bases