updated tree rendering