This case, and the delete case below seem really long to be embedded within a switch statement. I recommend that you write share and delete methods, and possibly register those as handlers directly on the buttons.  Or at least keep this handleEvent() method as a short dispatcher method.