replaces modal dialog with built selector