changed accessRemoteSite to use window.open