Dismiss the url dialog when user selects one item.