single method required to fill section arrays

created single method that allows you to fill the section arrays
easily, progress bar and cancel button functionality also added