rework targetting of buttons to avoid last-child

The use of last-child and after seems to confuse IE8,
so target buttons in a different way

closes #235