OP-1174 uploader gadget - fixed spelling mistake and simplfied erase button logic
OP-1174 uploader gadget - refactored duplicated code into new "sleep" method
OP-1174 uploader gadget - make sure UI is updated before modal popup is executed
OP-1174 uploader gadget - added comments and cleaned up logging