Updated demo: fixed leave room management