Simple frontend code for showing history