move card_type field so that it gets set by JS