Work on modal dialog + set default for pref.