Changed how to create the dialog to select a project.

Old one is deprecated.