Add permalinks

Add permalinks to models