make datepicker work