render tree by dict