added code to use the nicer datepicker