auto join room on reconnect
bit more refactoring, hope it all works