Add create and join room function.