fix bug when no name column
auto-generate detail view