update ajax function

class="message"