fix notes creating and editing