Added popstate event