clean up HTML renderer
simplify list builders for tests