Set the class = ui-btn-active and ui-state-persist to the correct button on their respective pages.
fixed some conflicts because we tried to make the same fix to footer button state.