update the permalink