Use custom class names in control group buttons to make them easily styleable.
Migrate to the new template interface and fix minor issues