add note event code