public void handleNextButton() {
    	if(!isChild){
	        ListModel<String> tapeAlphabetList = startView.getTapeAlphabetList().getModel();
	        ListModel<String> inputAlphabetList = startView.getInputAlphabetList().getModel();
	        ListModel<String> stateList = startView.getStateList().getModel();        
	        
	        for(int i = 0; i<inputAlphabetList.getSize(); i++){
	            aTuringMachine.getInputAlphabet().add((String)inputAlphabetList.getElementAt(i));            
	        }
	        
	        for(int i = 0; i<tapeAlphabetList.getSize(); i++){
	            aTuringMachine.getTapeAlphabet().add((String)tapeAlphabetList.getElementAt(i));
	            transitionView.getSymbolItems().addElement((String)tapeAlphabetList.getElementAt(i));            
	        }
	        
	        for(int i = 0; i<stateList.getSize()-2; i++){
	            aTuringMachine.getStates().add((String)stateList.getElementAt(i+2));
	            transitionView.getStateItems().addElement((String)stateList.getElementAt(i+2));            
	            aTuringMachine.getTransitions().put((String)stateList.getElementAt(i+2), new HashMap<String,HashMap<String,String>>());
	            for (Object a: aTuringMachine.getTapeAlphabet()){          
	                aTuringMachine.getTransitions().get((String)stateList.getElementAt(i+2)).put((String)a, new HashMap<String,String>());
	                transitionView.getTransitionItems().addElement("[" + (String)stateList.getElementAt(i+2) + "]" + " [" + (String)a + "]" + " => ");
	            }    
	        }
	        aTuringMachine.setStartState((String)startView.getStartComboBox().getSelectedItem());        
	        aTuringMachine.setCurrentState(aTuringMachine.getStartState());
	        transitionView.getStateItems().addElement("ACCEPT");
	        transitionView.getStateItems().addElement("REJECT");	      	
	        transitionView.getTransitionList().setSelectedIndex(0);
	        transitionView.getNextButton().setEnabled(false);
    	}
    	cards.show(mainPanel,"3");
    }