use jQuery UI to build a dialog selector