Add pushState functionality to spaces pages