settings: implement Preferences dialog setup
new-task-dialog: various improvements on input handling