Bars displayed is now limited to 6 after the display bar  variable set in the input field above each dimension page. The code works pretty well, but I am not confident in its design. It runs through every bar, and displays only the few that are in the appropriate range. To check if its in the range is not computationally costly, but it seems wasteful to check every row, and not just select the rows to display.