moves getter for the name of a deck to the end.
refactors codes in create new deck panel.