put all of the html construction in one place