more code organization, changed a problem where we forgot to differentiate between shared and private docs on deselection of a cell