new method for adding page context attributes.