fixed identical id tags in generated html

Generated html list no longer created multiple elements with an id of 'tree'
Now only topmost ul tag is given that id.