added autoclose to datepicker