Add page type to context.