Revert "refactoring how tables are displayed"

This reverts commit 71cc36f2cfe8288dbd2aa01a2deea809c9da77c9.