improved datepicker rendering