Added AJAX submission support