added join room handler