add type for datepicker