fixed edit-note functionality