changing page type