Move pageref into its own DOM