corrected some bugs in Share, Edit, Delete logic.  I left out the array item definitions.