added functionality for marking jobs as completed.