added if for AttributePageElements