instance model deleted.
Corrected to remove all the annotations when a document is removed from a project.
problem with the view for document records fixed.