update permalinks