Connect UI with message encoding