Adding pushState logic for persistent URLs