Fix display of btn groups

The hidden input field is now inserted after the first element to handle
the CSS applied to the first element.