Html5ui fixes and improvements