Change some layouting stuff, cache ndoes into array.