updated teh controller to add courses