switches window.open to window.location.href