improvements to deleting notes