view toggle and dynamicTree for compound elements