refactored room id to use window.location.path