Modifies main layout to tablelayout