adding tree grid