I am running this function, starting at the let x=-1 it runs through the panels and places them in a sidebar menu. It is placing all the panels multiple times. I am trying to fi