its better to hire a scripter than doing something you don’t know how to do.
Anyway, just copy the code I told you to do above, and print the template buttons with this:
print(templateButtons)
just what I set in the comment above:
for now, at least.