refact htmlgrod