working with edges
create textboxes to edit threshold values in real time