display tables correctly