Ah, I get it now. Thanks much!
In the past when I have used actions in a re-useable header (e.g. toggle an element) I found that the delay in the action is quite substantial compared with using the exact same function on the page itself. Is that common?
Thanks again Boston.