rrrrrrefactoring

Modified message handling - composing the message and sends it to the
widget...