changed localhost to document.location.host in viewpartneragreement controller