use window.location instead of iframe