add replaceState sample