moved anno handlers out of the function (they are firing multiple times