put window.open in index