Setup datepicker to work