dry up some of the html generation