autoclose datepicker after data selection