How to set page type