Added a dialog for switching between profiles.