add history pointe for flipping through history entires. reset it when adding a new entry