Make the datepicker work