Adding a progressbar for the loading