pageview function and new attributes in core data