Create reusable way to send message from all the dialog.