improve layouts, templates and stylesheets

This commit improves layouts, templates and stylesheets:

- the structure and naming of the HTML generated by the layouts/templates were improved.
- views have been improved to better handle CSS properties contained in models
- the improved stylesheets fixe issues with tooltip display
- UI improvements