store state to avoid needing to rebuild when changing theme