fix state after back , add set,get of history