rework settings dialog