updating pathname