fix annotations loading in docViewer
remove some smartdocs code