Refactored the "state" attribute in the "Deck Text" form