add posthistory class