url routing for filtering. popstate problem