added QDialog for layersettings