updating the datepicker