hide progressbar when event is not valid