Rework header widgetry a bit

Rework how we show and hide the mode-specific widgetry in the
header. With this change, we are correctly updating the visibility
of all the buttons in the header as you are cycling between the
pages, even if some of the pages are loading, and show wait
indicators.