tree table for templates