Added recursive rendering for nodes with children