Copy CSS class to inner trees

Copy class of main tree element to the inner tree elements