popstate closes #2