hide detail tables when empty