some improvements of UMLElementPanel