i also tried that, but as soon, as the function returns -> the ref gets out of scope, the reference is lost ! Thus the ref is only valid within that function, but as soon as the function ends, the ref isn't valid anymore - and these special panel functions need a permanent reference to the variable