add write node tree to html