removing window.location.href