first part of settings dialog done