enhance nesting of elements for pages, to not duplicate styles