fixed duplicated deck issue when saving newly created decks
prevent deck name from moving when the name is empty
improved handling of deck edits