modif for adding uml element from element panel