got history state manipulation working