Better close HTML on oauth complete

Closes popup and refreshes main page