add progress bar when submitting