added ajax method messaging remade