Update card function is done