fix segment type label switching and minor style issues