added code to create and join a room