Implemented sendUIMessage() global methods for String and int messages.