implement note editing