Added history display functionality