Improved html generation layout.