Updated code to add UrlReferrer

Updated code to add UrlReferrer