Adding close window functionality to CourseDBEdit