check replaceState