Ios progress bar not updating