added window replace location for immediate pop up window