Made some tweaks to the labels check

Check if we actually have expand and contract label values as well as using HTML instead of text so we can use things like icons and whatnot.