Fixed auto redirect with popup window