Do refactor on updating card counter