waits for ping response before reloading page after upgrade