fix confirm and back button placements on document viewer and fix an error about null annotations when viewing smartdocs