adds templates for the case definition tables.
fixes column fail in template tables