Add ability automatically input the value of the text highlighted into the appropriate text box