public void handle(ActionEvent e){
            if(e.getSource().equals(mechanicsChoices[INDEX_ZERO])){
                mainPage.setScene(animationPageScenes[INDEX_ZERO]);
                projectileAnimation.getReturnButton().setOnAction(mainPageButtonAction);
            }
            if(e.getSource().equals(mechanicsChoices[INDEX_ONE])){
                mainPage.setScene(animationPageScenes[INDEX_ONE]);
                pendulumAnimation.getReturnButton().setOnAction(mainPageButtonAction);
            }
            if(e.getSource().equals(wavesChoices[INDEX_ZERO])){
                mainPage.setScene(animationPageScenes[INDEX_TWO]);
                wavesAnimation.getReturnButton().setOnAction(mainPageButtonAction);
            }
            if(e.getSource().equals(wavesChoices[INDEX_ONE])){
                mainPage.setScene(animationPageScenes[INDEX_THREE]);
                dopplerAnimation.getReturnButton().setOnAction(mainPageButtonAction);
            }
            if(e.getSource().equals(electricityChoices[INDEX_ZERO])){
                mainPage.setScene(animationPageScenes[INDEX_FOUR]);
                coulombsAnimation.getReturnButton().setOnAction(mainPageButtonAction);
            }
            if(e.getSource().equals(electricityChoices[INDEX_ONE])){
                mainPage.setScene(animationPageScenes[INDEX_FIVE]);
                circuitAnimation.getReturnButton().setOnAction(mainPageButtonAction);
            }
        }