Hi Xrystal
I have got some of this working.
In my update function, I made the variables at line 9 & 10 local.
In my frame code, I made the variable at line 31 local.
So the last issue I have left is that I can still scroll beyond the end of the list of buttons.
I have updated my OP to reflect the current status of my issue.