updating CSS to use flexbox layout instead of tables