Move display of UL list into include file

This is so we can use for other purposes shortly, such as different
treeTypes