implement date/time picker and fix the modal event dialog