Revert "Revert "Added notes functionality""

This reverts commit 7cf0486c97597ecc8a831b7756361ada994dfef9.
Fixed note deletion bug