Adding if statement so that name column is shown when table collapses(footable).