added max value for progress bar