add course id support in ajax code