Added preferencies dialog.