1.removed js alert box; 2.added window.open instead