refactored to accomodate notes history as html