Added Pagemanager to store the page type