history display functioning