public void actionPerformed(ActionEvent arg0) {
                                Program mediator = new Program(txtUserName.getText(), getChoices());
                                if(!secondPage){
                                        showIngredient();
                                        mediator.flush();
                                }
                                else{
                                        if(!thirdPage){
                                                showPrice();
                                                txtbxResult.setText(mediator.getPrice());
                                        }
                                        else{
                                                txtbxResult.setText(txtbxResult.getText() + "\r\n Order's number is: " + String.valueOf(mediator.getRandomNumber()));
                                                btnNext.setEnabled(false);
                                        }
                                                
                                }
                        }