Fixes for HTML5UI and new style

Fixes for HTML5UI and new style.