fixed message ajax method