Updates for popstate and hashes