Changed messages module. Now messages are writing in a new layout, not
in a new dialog.