added code to save scheduled job ID