Improve the style of the tree view with Boostrap collapse feature

Improve the style and add the possibility of using an HTML template
to generate the final HTML page