Fixed JoinDialog class.

It's now an extenstion to Dialog class.