public void actionPerformed(ActionEvent arg0) {
                                Program mediator = new Program(lblUserName.getText(), getChoices());
                                if(thirdPage){
                                        thirdPage = false;
                                        showIngredient();
                                        ingridients.clear();
                                        mediator.flush();
                                }
                                else{
                                        secondPage = false;
                                        showInsertName();
                                        ingridients.clear();
                                        mediator.flush();
                                }
                        }