Thanks Kumar. That is one way for this to work.
Unfortunately it only works if I have a static number of buttons.
In my scenario the number of buttons displaying changes dynamically based on whether or not the user has a customer or service request in context.
I'll have a think about this and see if I can make it work for my situation.
Cheers
Kieran