update and delete for sharings