Setting table structures to display properly