allowing user to edit threshold