Added edit code and name
Edit now loads pre-existing cards
Moved a list fetch to avoid errors