update datepicker component