completed configurable table structure and ubtton control