Updated the fitlering of page types to account for parent or layout page