if (scriptInterpreter != null) {
//if scriptInterpreter is not null, that means this method is being called to reset the survey
//if that's the case, the old scriptInterpreter should stop listening to these events
removeInsertQuestionListener(scriptInterpreter);
}
scriptInterpreter = new ScriptInterpreter(this, surveyReader.getInitScript(), surveyReader.getOnAnswerChanged());
menu = surveyReader.getMenu();
saveToFileOnFinish = surveyReader.saveToFileOnFinish();
notifySurveyResetListeners();
}