Adding a progress bar to the form