added confirmation dialog to save config