before change datepicker