Many tweaks to dialogs, moving them to flex and adding better value handling.