Add annotation based event registration