add a dropdown button action to save and exit prefs (closes #660)