updated flexbox detection