Adding close window functionality to CourseDBAdd