Frontend: Set global expand to correct state

If the state is altered by expanding specific sections,
update the global state.