add version to events and throw ex in case of version conflict
add functionality to update note