added selection modal dialog to choose threshold