layerSetting QDialog should be modal
Add buttons and make windows modal