extend sleep during isPlayingVideo  and wait 5 second before displaying the dialog after video finished (and in general)