Created a preferences dialog.