Move dialog to a own class
More logging