Prevent accidental re-runs

A user should not be able to click the 'rerun' button if it has been clicked already and the run has not completed again.