v6: js logic for sideStats, style secondary button