updated datepicker for autoclose feture