Adding the delay to accommodate the dialog animating to surface