added function for updating progress bar