Keymaster thinks it changed
Change pending and flag to toggle buttons instead of buttonsets
Add and use createElementTogglePending()
Add and use createElementToggleFlag()
Change "flag" to "flagged"
Move "flag" and "pending" to state