change layout of table