switch from tables to flexbox