If you want to see how the clickable button panel works, take a look at the first Extension:
Courier Extension 1: Event Driven Programming