removed toggleAnnotations function