selected labels functionality