rewrite history toggling