Currently the buttonbar is generated in `getHTMLForElements()`, extract it to view files, same as #2.