Improved updating progress bar and time