add tree layout, default layout is tree