Refactored message dialog for connection checking.  Fixed minor bug in upload procedure.