refactoring of node-list rendering