Moved dialog classes to separate file.