fix ajax messaging