updates permalinks