private void buttonRenameControl(JButton button, JTextField txt) {
		if(prevButtonClicked == null) {
			prevButtonClicked = button;
			prevTextField = txt;
		}
		else if(prevButtonClicked != button) {
			prevButtonClicked.setBackground(Color.GREEN);
			prevTextField.setText(oldName);
			prevTextField.setEditable(false);
		}
		
		if(button.getBackground() == Color.GREEN) {
			prevButtonClicked = button;
			prevTextField = txt;
			button.setBackground(Color.RED);
			oldName = txt.getText();
			txt.setEditable(true);
			txt.setText(null);
		}
		else {
			prevButtonClicked = null;
			prevTextField = null;
			button.setBackground(Color.GREEN);
			newName = txt.getText();
			txt.setEditable(false);
			rename(oldName, newName, txt);
		}
	}