add event handlers with end of date input