added datepicker and confirmation dialogs