added the checkbox for running

calls advance in the repainting thread if the running checkbox is
selected