incorporating datepicker into models