Cleaning up and making delete and edit work for decks