#129 added tricks with context menu hiding on dynatree and diagram click.