update path for links