Added defaultDialogButtons method; replacing file upload form with static text after successful upload.