Added check to page create view to make sure the selected class is a descendant of Page