Refresh account page after logout
Change document to window