enqueue script fix for double pop up windows