add end date to the form