add summary toggle for notes history in the frontend