begin html-generate for edit card side