refs #1816 only display the first 40 chars of the label
refs #1816 coding style