Creating a progressbar to load the files