Made use of history.replaceState