Finished HTML rendering and tree collapsing