Improve semantics of orphaned form elements such as buttons

Any further comments on this @jxpx777 — are we good now, does it work?