fixed memleak
implemented removing notes