add and fix permalinks