changed selectiondialog a bit