made method for progress bar setting