added card update api functions