getting the datepicker working