Add AJAX to message creation