datepicker works for history, doesn't work for items