refactored notes to finally work and inherit correctly. editing/sorting is working also