Modified ShareBox behavior to use dialog boxes.