do loading with progressbar