implemented cancel option for jobs