Use flexbox to display node list