Made a loading bar when the Run button is clicked