modified tcard_edit