Cleaned up a little bit of code in building the popup menus for the different ion chamber views.