basic structure for new class dialog