add table generate method to table
add getElementsByClassName