reformat the timeline output on the web page