Add TextBox to display the threshold value
User can also directly change the value of the TextBox.