datepicker now partially working