Implemented changing table columns based on displayed data.