add permalink code