prepare for tablelayout