unification of card editing functions