edit state history