bugfixes in html layout