Recreated the ClassDialog

This time with an XML layout file, instead of hardcoded stuff.