add loading image and progress bar