changed document.location redirect