fixed ajax-submit of new messages
bugfixes