Fix switching to new windows on http get