Fix help pane button toggling (closes #2471)
(and cleanup code to make background, map_data, help panes more consistent)