add level attribute to node
rendering first level