moved updateProgressBar function to Tools and deleted Porogress bar class