Debugging of display bars

Fixed global name issue and class calling issue