changes the way he script works for UpdateCardsTable