changed progressbar in mainActivity