small fixes to things thst were wrong in the datepicker sample (still not working)