improved the locomotive_cms_gregory  template