moved var selection to a dialog