if you aren't repositioning the buttons or changing their position, would it be possible to simply include them all in a single group, include that group on all the cards, and then hide/show them as appropriate in the preopencard handler?