wait for XHR to set the display on the error div