style: add some classes for history items depending on state