changed to window.location