Datepicker dialog now working