Made sure onpopstate is added via AddEventListener