improved html5 and css support