added room joining functionality