fix wizard step 2 closing entire window

relying on `opener` to determine if this is a popup window isnt too reliable, so heres an even uglier workaround