Refactor all the settings dialogues to fit with
the new layout.