changed checking if an item exists from using Course Number to Course ID from KMdata