Control http request based off provider name and add popupWindow.location.hash check