update carddeck_edit
bugfix and cleanup