create course material when the course is created