updated tgm plugin and placed within theme functions