fix job status bug and add activity for creating subjobs