Updated organizePages function to initialize the questions array properly for each page