updated popstate change bug