inserting code for permalinks