change the page type