TableGUI cleanup

Compacted the declarations in TableGUI to make it cleaner to read.