added delete to jobs, fixed bugs in jobs