WIP: now it works when I go forward a in the browser, but not back