begin html generation