Add the modify functionality and resolve bugs

We can now modify a card
Some bugs on the add and delete cards are resolved