pass courseid as paramter