made room an event emitter