stuck the window.open into the marker function