Added swing for progressbar