add paintEvent() to dendrogram_class