Removed rendundant window.open method