progress bar working with delayed invisibility