better formatting for history page