add initialize datepicker after creating a date field