added reset and wait
default cancel=False for handle popup