Adding on change callback

Adding an onchange trigger on the on change attribute value of the
final input