link ContextMenu to the array transformation