add autoclose feature to all datepicker