adding permalinks and linking titles