display history code