added table factory
add index value to table formatter/factory