handle ui payload in messages