finished adding, updating and deleting of DialogCourses
remove dependence between DialogClasses and Classes.
redrawing bug is resolved.