Made the index page and emails dynamic with trail name.