added ctable to template
new exapmle with format.tables