Reworking html redering scheme