Changed the resource variables to be scope variables so I can refill the arrays after the unpublish button has been clicked. Now testing out how to get the publish title to hide if theres no more quizzes in this array.