changing tables to list format