Changed to allow change of theme in 'allow_demo_mode' during session