convert table layout to linera layout