On save, push history to the new state