clear history before displaying