Make datepicker actually work