private void addProperButton() {
        EdentButton enabledButton;
        EdentButton disabledButton;
        if (editing) {
            enabledButton = this.deleteButton;
            disabledButton = this.addButton;
        } else {
            enabledButton = this.addButton;
            disabledButton = this.deleteButton;
        }

        disabledButton.setEnabled(false);
        enabledButton.setMargin(null);
        enabledButton.setPreferredSize(SQUARE);
        panelWrapper.add(enabledButton);

        enabledButton.addActionListener(new java.awt.event.ActionListener() {
            @Override
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                if (editing) {
                    if (ViewController.showConfirmDialog(DELETE_CONFIRM_TEXT, DELETE_CONFIRM_TITLE)) {
                        switch (type) {
                            case "ToothState":
                                ViewController.modelFacade().deleteToothState(organStateId);
                                parent.createToothList();
                                break;
                            case "GumState":
                                parent.createGumList();
                                ViewController.modelFacade().deleteGumState(organStateId);
                                parent.createGumList();
                                break;
                        }
                    }
                } else {
                    String name = textName.getText();
                    String mark = textMark.getText();
                    //String icon = picChooser.getSelectedFile().getAbsolutePath(); //TODO file checking and copying
                    String icon = null;
                    if (name != null && name.length() > 0) {
                        switch (type) {
                            case "ToothState":
                                ViewController.modelFacade().createToothState(name, mark, icon);
                                parent.createToothList();
                                break;
                            case "GumState":
                                ViewController.modelFacade().createGumState(name, mark, icon);
                                parent.createGumList();
                                break;
                        }
                    }
                }
            }
        });
    }