Set id attribute for note