Add method to get page's content type