until modal dismiss finished