handle root popstate case